package com.tanglongan.designPattern.dp20_strategy.demo00.better.impl;

import com.tanglongan.designPattern.dp20_strategy.demo00.better.ICouponDiscount;

import java.math.BigDecimal;

/**
 * N元购
 */
public class NYCouponDiscount implements ICouponDiscount<Double> {

    @Override
    public BigDecimal discountAmount(Double couponInfo, BigDecimal skuPrice) {
        return new BigDecimal(couponInfo);
    }

}
